<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>无标题文档</title>
<style type="text/css">
body{ font-size:12px;
}
#uploadPreview,#uploadPreview1 {
    width: 168px;
    height: 168px;                          
    background-position: center center;
    background-size: cover;
    border: 4px solid #fff;
    -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, .3);
    display: inline-block;
</style>
<!--<script language="javascript">
 function add(txt)
 {
   var abc = document.getElementById("abc");
  abc.innerHTML = parseInt(abc.innerHTML) + 1;
 }
</script>-->
</head>
<body>
<!--<table width="500" height="50" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle">
    	<div id="abc">0</div>
    </td>
  </tr>
  <tr>
    <td align="center" valign="middle">
    	<a href="#" onclick="add(1)">投一票</a></td>
  </tr>
</table>-->

<br /><br /><br /><br /><br />



<div id="uploadPreview"></div>

<input id="uploadImage" type="file" name="photoimage" class="fimg1" onchange="PreviewImage();" multiple/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$("#uploadImage").on("change", function(){
    var files = !!this.files ? this.files : [];
    if (!files.length || !window.FileReader) return;
    if (/^image/.test( files[0].type)){
        var reader = new FileReader();
        reader.readAsDataURL(files[0]);
        reader.onloadend = function(){
       $("#uploadPreview").css("background-image", "url("+this.result+")");
        
        }
 
    }
 
});
</script>


<div id="uploadPreview1"></div>

<input id="uploadImage1" type="file" name="photoimage" class="fimg1" onchange="PreviewImage();"/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$("#uploadImage1").on("change", function(){
    var files = !!this.files ? this.files : [];
    if (!files.length || !window.FileReader) return;
    if (/^image/.test( files[0].type)){
        var reader = new FileReader();
        reader.readAsDataURL(files[0]);
        reader.onloadend = function(){
       $("#uploadPreview1").css("background-image", "url("+this.result+")");
        
        }
 
    }
 
});
</script>






</body>
</html>